Throughout The Metamorphosis, Kafka uses Gregor to make constant reference to the slamming doors in the background. Kafka lived with his parents most of his life even when he was able to support himself. They lived in a small apartment and Franz could not concentrate on writing because of the yelling, screaming and slamming of doors. Maybe Kafka makes reference to slamming doors, which seem to have no relevance to the story, because it happened so often during the times he was trying to write, it happened unknowingly.
When comparing Franz Kafka and his personal life to The Metamorphosis it is obvious in more ways than one that he was writing a twisted story of his life. The emotional and physical abuse Gregor goes through are similar to what Kafka went through in real life. They were both abused and neglected by their fathers when they were disappointed with them. Kafka uses Gregor transforming into a bug as a way of exaggerating himself, trying to express his feelings and point of view. When writing, Kafka felt as if he was trapped in his room which he referred to as "the noise headquarters of the apartment". Gregor was an exaggeration of this because he could not leave the house to escape the noises and abuse.