When he goes in the box praise him and make it really pleasant for him. Then start to talk quitly to him and to praise him when you shut the door. In 20 seconds or so, let him out again and just give him a pat. Leave the door closed for gradually longer periods, but not long enough to upset him.