Hopefully, he has realized WHY he is being shut up at night and get the idea and stop that behavior. Just be consistant with the "punishment"...