Fixed closing process (i hope)