Default 1000 closing code added

Added default closing code of 1000 CLOSE_NORMAL, in the case that a code... is not passed to the .close() method.