.close added
$! instead of $.